home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 75 / XENIATGM75.iso / Shareware / X-Setup 5.0 / _SETUP.1 / XQ Program Timeout.xpl < prev    next >
Text File  |  1998-08-08  |  2KB  |  52 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 3.1"
  2. "TYPE"="2"
  3. "COUNT"="2"
  4. "UIPATH"="System\Timeouts"
  5. "NAME"="Program Timeout"
  6. "LANGUAGE"="VBScript"
  7. "TEXT 1"="Manually (ms)"
  8. "TEXT 2"="On Exit (ms)
  9. "DESCRIPTION 1"="If an application should be ended, Windows waits a specified interval before it declares the application as "Not responding"."
  10. "DESCRIPTION 2"="The interval of "Manually" is used when you are using the Taskmanager to end an application (default: 5000 ms)."
  11. "DESCRIPTION 3"="The interval of "On Exit" is used when this computer will be shut down and Windows tries to exit the running applications (default: 20000 ms)."
  12. "DESCRIPTION 4"=""
  13. "DESCRIPTION 5"="Both values are in MS; 1000 ms = 1 second, 2000 ms = 2 seconds and so on."
  14. "AUTHOR"="Xteq Systems"
  15. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  16. "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@gmx.net."
  17. "COMMENT 2"="Version 1.1"
  18.  
  19.  
  20.  
  21. sP="HKCU\Control Panel\Desktop\"
  22. sV1="HungAppTimeout"
  23. sV2="WaitToKillAppTimeout"
  24. Sub Plugin_Initialize 
  25.  i=RegReadValue(sp & sv1)
  26.  SetUIElement 1,i
  27.  
  28.  i=RegReadValue(sp & sv2)
  29.  SetUIElement 2,i
  30. End Sub
  31.  
  32. Sub Plugin_CheckData(ElementIndex)
  33.  s=GetUIElement(ElementIndex)
  34.  If Len(s)<=0 then
  35.   DataInvalid "Please enter a value."
  36.  end if
  37. End Sub
  38.  
  39. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  40.  i=GetUIElement(1)
  41.  Call RegWriteValue(sp & sv1,i,1)
  42.  
  43.  i=GetUIElement(2)
  44.  Call RegWriteValue(sp & sv2,i,1)
  45. End Sub
  46.  
  47. Sub Plugin_Terminate 
  48. End Sub
  49.  
  50.  
  51.  
  52.